package utils;

import java.io.Closeable;

/**
 * Created by shane on 2018/5/19.
 */
public class IOUtils {
    private IOUtils() {
        throw new AssertionError();
    }

    public static boolean close(Closeable io) {
        try {
            io.close();
            return true;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }
    }
}
